﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using BOSS.Domain.Security;
using BOSS.Domain.Products;

namespace BOSS.Domain.Customers
{
    /// <summary>
    /// 客户账户
    /// </summary>
    public class CustomerAccount : DomainEntity<int>
    {
        /// <summary>
        /// 获取 / 设置 账号
        /// </summary>
        public virtual string AccountNumber { get; set; }

        /// <summary>
        /// 获取 / 设置 客户
        /// </summary>
        public virtual Customer Customer { get; set; }

        /// <summary>
        /// 获取 / 设置 最近购买记录
        /// </summary>
        public virtual PurchaseRecord LastPurchaseRecord { get; set; }

        /// <summary>
        /// 获取 / 设置 最近消费记录
        /// </summary>
        public virtual ConsumptionRecord LastConsumptionRecord { get; set; }

        /// <summary>
        /// 获取 / 设置 账户项列表
        /// </summary>
        public virtual IList<CustomerAccountItem> Items { get; set; }
    }
}
